package com.zychao.smex.db;

import java.util.LinkedHashMap;
import java.util.Map;

import com.zychao.smex.po.Book;

public class MyDB {
	
	private static Map<String, Book> map = new LinkedHashMap<String, Book>();
	
	static {
		map.put("1", new Book("1", "Java编程300例", "zychao", 20, "Java入门经典"));
		map.put("2", new Book("2", "JavaWeb开发1200例", "zychao", 70, "JavaWeb入门经典"));
		map.put("3", new Book("3", "Head First 设计模式", "zychao", 120, "设计模式入门经典"));
		map.put("4", new Book("4", "Oracle教程", "zychao", 90, "Oracle入门经典"));
		map.put("5", new Book("5", "Hibernate", "zychao", 60, "Hibernate入门经典"));
	}
	
	public static Map<String, Book> getAll() {
		return map;
	}
}
